home *** CD-ROM | disk | FTP | other *** search
- """
- /***************************************************************************
-
- Author :Charles B. Cosse
-
- Email :ccosse@asymptopia.com
-
-
- Copyright :(C) 2002,2003 Asymptopia Software.
-
- ***************************************************************************/
- /***************************************************************************
- Tile.py
-
- ***************************************************************************/
-
- /***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. (Please note that if you use this *
- * code you must give credit by including the Author and Copyright *
- * info at the top of this file). *
- ***************************************************************************/
- """
-
- from myutil import *
-
- class Tile(pygame.sprite.Sprite):
-
- def __init__(self,img,int_val,str_val):
- pygame.sprite.Sprite.__init__(self)
- self.image,self.rect=load_image(img,1)
- self.saved_center=None
- self.int_val=int_val
- self.str_val=str_val
-
- def update(self):
- self.rect.center = pygame.mouse.get_pos()
-
- def reset(self):
- self.rect.center=self.saved_center
-
-